home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
009
/
patches.arc
/
PE-COLR.MOD
< prev
next >
Wrap
Text File
|
1983-06-11
|
10KB
|
228 lines
Written by James L. Johnsen April 1st,1983
This write up is aimed at those people or persons who have the color
card and a color monitor and the IBM Personal Editor. I'll show you how to
change some values in the .EXE file to give you colors while in the Personal
Editor that you probably weren't of.
Doing this modification does not affect the performance of your per-
sonal editor in reguards to functions that it performs. It only causes the
color(s) of text either entered by you or text output by the Personal Editor
to show up in colors of your choosing.
This mod must be done (even if you do own DOS 2.00) from or with DOS
1.10. The reason for this is that the first step in the mod process is to
rename PE.EXE to PE.COM. The main reason for renaming the file extension
from .EXE to .COM is that the DEBUG program will not allow you to write the
changed file back to disk if the file name had or has the extension of .EXE.
There would be no reason NOT to use DOS 2.00 in this mod except that
I've noticed that if you rename a .EXE file to fname.COM and load it into
the DEBUGger then the DEBUG program recognizes that the file used to be of
extension .EXE because, (in my best guess), of the header in all .EXE files.
There is a byte in the .EXE header that tells the command. processor wheather
or not it is a valid .EXE file. I'm sure that the DOS 2.00 version of DEBUG
checks that or the command processor checks it and tells DEBUG that even
though the file had the extension of .COM that it's really a .EXE file. The
end result is that DEBUG won't let you write the file back off to the disk
after you load it.
DOS 1.10 version of the DEBUG program isn't that smart. You can change
the extension from .EXE to .COM and the DEBUG program will go ahead and load
it at location 'X':0100. That's why the file is renamed and DOS 1.10 is
used.
------------------------------------------------------------------------------
What to do, how to do it and why it's done.
First, copy PE.EXE and PE.PRO and DEBUG.COM over to a WORK-DISK. Assume
that the work disk is in drive A>.
From Drive A>.
A>RENAME PE.EXE PE.COM <CR>
A>DEBUG <CR>
-N PE.COM <CR>
-L <CR>
-D A260 L10 <CR>
this is the output you should see;
'X':A260 07 70 17 71 71 07 04 00-BA 03 00 B0 50 00 28 00 [whatever]
location: Value: Function:
--------- ------ ---------
A260 07 Color of text you see on the edit screen. This can
either be text that you load into the editor or
something that you type in yourself.
A261 70 Color the text becomes when you mark it for either
moving or copying or what-have-you.
A262 17 Color used when you press the ESCAPE KEY to leave
entering text in the editor to the COMMAND LINE. The
character where the cursor was is left 'MARKED' on
the edit screen. This is the color value for that
'marker'. Specifically, this is the color value used
when leaving the edit screen if the cursor is on an
unmarked (for block copy or move etc..) area of text.
A263 71 Color used when you press the ESCAPE KEY to leave
entering text in the editor to the COMMAND LINE. The
character where the cursor was is left 'MARKED' on
the edit screen. Unlike above (A262) this color value
is used if the cursor was resting on a marked area of
text (for block copy or move etc..).
A264 71 Color of text on the COMMAND LINE as you type it on
the command line. The '7' in the '71' is the color
used for the COMMAND LINE. On every monitor I've
seen, this color is low intensity white or grey.
A265 07 Color of text beneath the COMMAND LINE. This color is
used for the text 'Replace' and 'Insert' and the
numbers that tell you what row and what column your
currently type at.
A266 04 Color used for the error messages.
Things to keep in mind if you want to change the color values to get different
colors for the areas they affect.
First, you must understand what the format is for the color values that we've
just looked at. The values were of cource in hex and of cource we're two(2)
digit values, two numbers or letters, (in our case numbers).
Lets look at two locations, A260 and A261 to understand the color value
format.
Location A260. The value there is 07. On the AMDEK COLOR II and NEC JC1202 RGB
monitors (and more than likely the new IBM Color Monitor), 07 is the attribute
for Low Intensity White, or Grey if you like. Lets take it apart.
The zero(0) of the '07' is the color used for the Background color.
The seven(7) of the '07' is the color used for the Forground color.
You should understand that any number, 0 through 7 in the Background part of
the value does not cause the Forground characters to blink. Number eight(8),
number nine(9) and characters 'A through F' in the Background part of the
value will cause the Forground characters to BLINK. So, unless you like blink-
ing Forground characters on your screen, don't use number eight(8) or number
nine(9) or characters 'A through F' in the Background part of the attribute
value.
Also, you should be aware that numbers zero(0) through seven(7) in the For-
ground part of the value (on every monitor I've ever seen color on), cause the
color of the text displayed on the screen to be of low intensity. I'm sure
that the hardware on these monitors are 'seeing' that if the 'I' bit is OFF
(numbers zero(0) through seven(7)) that there is no added intensity. That
seems to make sence and in fact that is how it appears on the AMDEK COLOR II
and the modified NEC JC1202 RGB's.
Numbers eight(8) and nine(9) and characters 'A through F' in the Forground
part of the attribute value cause the Forground characters to be of a brighter
intensity.
If your undecided about what colors you would like for what, then take my
suggestion and enter the values into the locations outlined below.
example to try----after all, you can always change them if you don't like it.
From DEBUG
If you arn't familiar with DEBUGS' E)nter command then please read that sec-
tion in the DOS manual before attempting to ENTER the values for this example
below.
-E A260 <cr>
L = Low Intensity
H = High Intensity
Preceeding character is first letter of color name except for 'Z' which is
Black.
Color Color
location: Old Value: Forgnd Bakgnd location: New Value: Forgnd Bakgnd
--------- ---------- ----------------- --------- ---------- -----------------
A260 07 W L Z L A260 0F W H Z L
A261 70 Z L W L A261 1B C H B L
A262 17 W L B L A262 7C R H W L
A263 71 B L W L A263 1E Y H B L
A264 71 B L W L A264 1E Y H B L
A265 07 W L Z L A265 0A G H Z L
A266 04 R L Z L A266 0C R H Z L
------------------------------------------------------------------------------
TABLE OF COLOR VALUES TO CHOOSE FROM
______________________________________________________________________________
LOW INTENSITY NONBLINKING FORGROUND | HIGH INTENSITY NONBLINKING FORGROUND
COLORS WITH BLACK BACKGROUNDS | COLORS WITH BLACK BACKGROUNDS
------------------------------------------------------------------------------
BLACK 00 |BLACK 08
BLUE 01 |BLUE 09
GREEN 02 |GREEN 0A
CYAN 03 |CYAN 0B
RED 04 |RED 0C
MAGENTA 05 |MAGENTA 0D
YELLOW 06 looks brown |YELLOW 0E
WHITE 07 looks grey |WHITE 0F
______________________________________________________________________________
LOW INTENSITY BLINKING FORGROUND | HIGH INTENSITY BLINKING FORGROUND
COLORS WITH BLACK BACKGROUNDS | COLORS WITH BLACK BACKGROUNDS
------------------------------------------------------------------------------
BLACK 80 |BLACK 88
BLUE 81 |BLUE 89
GREEN 82 |GREEN 8A
CYAN 83 |CYAN 8B
RED 84 |RED 8C
MAGENTA 85 |MAGENTA 8D
YELLOW 86 |YELLOW 8E
WHITE 87 |WHITE 8F
______________________________________________________________________________
BACKGROUND COLORS WITH A BLACK FORGROUND COLOR [all are Low Intensity]
------------------------------------------------------------------------------
Note: You can substitute any of the
columns that either have an '8' or a
'0' in it with any of the numbers
listed to the left for a background
color to go with the forground color
you choose. Remember any number in the
left column with a value of atleast
'8' but not greater than 'F' hex will
cause the forground character to
blink. The background values listed to
the left in the left column will not
cause the forground character to
blink.
------------------------------------------------------------------------------
********************EXACT PROCEDURE********************
------------------------------------------------------------------------------
COPY B:DEBUG.COM
1 File(s) copied
A>COPY B:PE.*
PE EXE
PE PRO
2 File(s) copied
A>RENAME PE.EXE PE.COM
A>DEBUG
-F100 FFFF 00 <cr>
-N PE.COM <cr>
-L <cr>
-DA260 L10 <cr>
0C39:A260 07 70 17 71 71 07 04 00-BA 03 00 B0 50 00 28 00 .p.qq...:..0P.(.
-EA260 <cr>
0C39:A260 07.0F 70. 17.7C 71.1E 71.1E 07.0A 04.0C <cr>
-W <cr>
Writing B280 bytes
-Q <cr>
A>RENAME PE.COM PE.EXE
A>PE <cr> and away you go!!!